-- GENERATED SPELL FOR [Kolkar Windchaser] --


function spell0_4635(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4635', 12000, 1)
end

function spell1_4635(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4635', 3000, 1)
end

function Sorts_4635(pUnit, Event)
local choix_sorts_4635 = math.random(0, 1)
if choix_sorts_4635 == 0 then
pUnit:RegisterEvent('spell0_4635', 1, 1)
end
if choix_sorts_4635 == 1 then
pUnit:RegisterEvent('spell1_4635', 1, 1)
end
end

function mob4635_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4635', math.random(1500, 3000), 1)
end

function mob4635_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4635_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4635_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4635, 1, 'mob4635_Action')
RegisterUnitEvent(4635, 2, 'mob4635_Leave')
RegisterUnitEvent(4635, 3, 'mob4635_Kill')
RegisterUnitEvent(4635, 4, 'mob4635_Die')
